
public class Demo01 {
	public static void main(String[] args) {
		int[] arr = {19,28,37,46,50};
		int temp = 0;
		
		//temp = arr[arr.length-1];
		//arr[arr.lengrh-1] = arr[0];
		//arr[0] = temp;
		
		//temp = arr[arr.length-2];
		//arr[arr.lengrh-2] = arr[1];
		//arr[1] = temp;
		
		for (int i = 0; i < arr.length/2; i++) {
			temp = arr[arr.length-1-i];
			arr[arr.length-1-i] = arr[i];
			arr[i] = temp;
		}
		for (int i = 0; i < arr.length; i++) {
			System.out.print(arr[i]+",");
		}
	}
}
